package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhuanjiabiandongshenbaoTingfaMapper;
import com.ruoyi.system.domain.ZhuanjiabiandongshenbaoTingfa;
import com.ruoyi.system.service.IZhuanjiabiandongshenbaoTingfaService;
import com.ruoyi.common.core.text.Convert;

/**
 * 专家变动申报_停发Service业务层处理
 * 
 * @author dy
 * @date 2024-05-27
 */
@Service
public class ZhuanjiabiandongshenbaoTingfaServiceImpl implements IZhuanjiabiandongshenbaoTingfaService 
{
    @Autowired
    private ZhuanjiabiandongshenbaoTingfaMapper zhuanjiabiandongshenbaoTingfaMapper;

    /**
     * 查询专家变动申报_停发
     * 
     * @param shenbaoid 专家变动申报_停发主键
     * @return 专家变动申报_停发
     */
    @Override
    public ZhuanjiabiandongshenbaoTingfa selectZhuanjiabiandongshenbaoTingfaByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoTingfaMapper.selectZhuanjiabiandongshenbaoTingfaByShenbaoid(shenbaoid);
    }

    /**
     * 查询专家变动申报_停发列表
     * 
     * @param zhuanjiabiandongshenbaoTingfa 专家变动申报_停发
     * @return 专家变动申报_停发
     */
    @Override
    public List<ZhuanjiabiandongshenbaoTingfa> selectZhuanjiabiandongshenbaoTingfaList(ZhuanjiabiandongshenbaoTingfa zhuanjiabiandongshenbaoTingfa)
    {
        return zhuanjiabiandongshenbaoTingfaMapper.selectZhuanjiabiandongshenbaoTingfaList(zhuanjiabiandongshenbaoTingfa);
    }

    /**
     * 新增专家变动申报_停发
     * 
     * @param zhuanjiabiandongshenbaoTingfa 专家变动申报_停发
     * @return 结果
     */
    @Override
    public int insertZhuanjiabiandongshenbaoTingfa(ZhuanjiabiandongshenbaoTingfa zhuanjiabiandongshenbaoTingfa)
    {
        return zhuanjiabiandongshenbaoTingfaMapper.insertZhuanjiabiandongshenbaoTingfa(zhuanjiabiandongshenbaoTingfa);
    }

    /**
     * 修改专家变动申报_停发
     * 
     * @param zhuanjiabiandongshenbaoTingfa 专家变动申报_停发
     * @return 结果
     */
    @Override
    public int updateZhuanjiabiandongshenbaoTingfa(ZhuanjiabiandongshenbaoTingfa zhuanjiabiandongshenbaoTingfa)
    {
        return zhuanjiabiandongshenbaoTingfaMapper.updateZhuanjiabiandongshenbaoTingfa(zhuanjiabiandongshenbaoTingfa);
    }

    /**
     * 批量删除专家变动申报_停发
     * 
     * @param shenbaoids 需要删除的专家变动申报_停发主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoTingfaByShenbaoids(String shenbaoids)
    {
        return zhuanjiabiandongshenbaoTingfaMapper.deleteZhuanjiabiandongshenbaoTingfaByShenbaoids(Convert.toStrArray(shenbaoids));
    }

    /**
     * 删除专家变动申报_停发信息
     * 
     * @param shenbaoid 专家变动申报_停发主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoTingfaByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoTingfaMapper.deleteZhuanjiabiandongshenbaoTingfaByShenbaoid(shenbaoid);
    }
}
